﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Evolution.Structure.Globe.Fields;
using System.ComponentModel;
using EvolutionBaseType;

namespace GameProject.ViewModel
{
    class MapViewModel : ViewModelBase
    {
        public int WorldSize
        {
            get{ return GlobalVar.World.Size; }
        }
        
        public MapViewModel(MainGameViewModel mainGameViewModel)
        {
            this.mainGameViewModel = mainGameViewModel;
            _WorldFields = GlobalVar.World.getWorldFieldList();
        }


        public BindingList<Field> WorldFields
        {
            get{ return _WorldFields; }
        }

        public void FieldActivated(Field field)
        {
            mainGameViewModel.FieldActivated(field);
        }
        
        private BindingList<Field> _WorldFields;
        public MainGameViewModel mainGameViewModel;
    }
}
